 
 import QtQuick 1.0

 Rectangle { id:windowRect; width: 700; height: 700; color: "red"
   focus:true;
   Keys.onPressed: {
		if (event.key == Qt.Key_Return) {
		    console.log("selected :" );
		     event.accepted = true;
		    var popUp = Qt.createComponent("CatChoice.qml");
		    //if (popUp.status == popUp.Ready){
			var button = popUp.createObject(windowRect, {"x": 100, "y": 100});
			button.color = "white";
			console.log("OK created" );
		    //}else {
			console.log("KO NOT created: " + popUp.errorString() );
		    //}
		}
    }
}
 
 